﻿#if _MSC_VER >= 1600
#pragma execution_character_set("UTF-8")
#endif

#include "widget.h"
#include <QApplication>
#include<QTextCodec>
#include<QFont>

int main(int argc, char *argv[])
{
   // QTextCodec::setCodecForLocale(QTextCodec::codecForName("System"));
    using  xingcent_player::Widget;

    qDebug()<<"getU() = "<<xingcent_player::getU();
    qDebug()<<"xingcent_Player' info : "<<xingcent_player::getInfoAboutThis();

    //  QTextCodec::setCodecForTr(QTextCodec::codecForName("system"));

    // QTextCodec::
    auto list = QTextCodec::availableCodecs();
    for(int i = 0 ; i< list.size(); ++i)
    {
        qDebug()<<QString(list[i]);
    }

    auto loca= QTextCodec::codecForLocale();
    qDebug()<<" name =               "<<QString(loca->name());
    QApplication a(argc, argv);

    Widget w;

    w.resize(1000,650);
    w.show();
    qDebug()<<"w.size() =   "<<w.size();

  w.setWindowTitle("小小");
  //  a.setWindowIcon(QIcon(":img/app.ico"));



    return a.exec();
}
